package neu.soft.service;

import neu.soft.entity.EntryOrder;
import neu.soft.entity.GoodInfo;
import neu.soft.entity.OperationPurchaseOrder;
import neu.soft.vo.PageBean;
import neu.soft.vo.ResultBean;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface EntryOrderService {
    ResultBean<Integer> addEntryOrder(Map<String,Object> map);

    ResultBean<PageBean<Map<String,Object>>> queryEntryOrder(Map<String,Object> map) throws ParseException;

    ResultBean<PageBean<Map<String,Object>>> showAllEntryOrder(Map<String,Object> map) throws Exception;

    ResultBean<Integer> deleteEntryOrder(Map<String,Object> map);

    int  batchInsertGoodInfo(List<GoodInfo> goodInfoList);

    void addPurchaseOrder(OperationPurchaseOrder purchaseOrder);

    int existEntryOrder(String entryOrderId);

    List<Map<String,Object>> queryGoodInfo(int goodOrderId);

    String queryOrderIdByPurchase(int purchaseOrderId);
}
